/**
 * @Author: 安广伟
 * @Email: anguangwei@jwzh.tech
 * @Date: 2024-09-10 11:04:31
 * @LastEditTime 2024-09-10 11:04:31
 * @since: 1.0.0
 * @Version: 1.0.0
 * @Description:
 */

package com.ry.mall.server.persistent.repository;

import com.ry.mall.server.persistent.entity.WxUserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface WxUserRepository extends JpaRepository<WxUserEntity, String> {

    /**
     * 根据openId查询用户是否存在
     * @param openId
     * @return
     */
    Optional<WxUserEntity> findByOpenId(String openId);
}
